﻿using System;
using System.Collections.Generic;
using System.Text;
using Dora.Tools.Enums.MessageManagement;
using Surging.Core.CPlatform.EventBus.Events;

namespace Dora.Tools.Events.MessageEvents.User
{
    /// <summary>
    /// 通知消息事件
    /// </summary>
    public class NoticeMessageEvent:IntegrationEvent
    {
        /// <summary>
        /// 消息接受组织 
        /// </summary>

        public List<Org> OrgList { get; set; }
        /// <summary>
        /// 消息接受者信息
        /// </summary>
        public List<UserInfo> UserList { get; set; }
        /// <summary>
        /// 是否通知所有用户 
        /// </summary>
        public bool IsForEveryone { get; set; }
        /// <summary>
        /// 消息详情
        /// </summary>
        public MessageInfoDto MessageDto { get; set; }
    }

    

    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfo
    {

        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Mobile { get; set; }
        public int OrgId { get; set; }
        public string OrgName { get; set; }

    }
    /// <summary>
    /// 组织机构信息
    /// </summary>
    public class Org
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}
